Helpers.test.js ➔ ... ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
import React from 'react'
2
import { t } from '../../src/components/Helpers'
3
4
describe('to translate string correctly', () => {
5
    test('has changed to Foo baz baz', () => {
6
        expect(t('Foo {{bar}} baz', { 'bar': 'baz' })).toBe('Foo baz baz')
7
        let innerObj = Object.create({name: 'inherited'});
8
        t('Foo {{bar}} baz', innerObj)
9
    })
10
})